﻿<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><HEAD><TITLE>采购计划一览表</TITLE>
<SCRIPT language=JAVASCRIPT> 
function chck()
{  var  count=0;
   for (var i=0;i<form.length;i++)
   if ((form[i].type == "radio") && (form[i].checked))
   count++; 
   if (count==0)
      { return false;  }
   else
      { return true;   }
}
 
function Add(SourceList,TargetList)
	{
	var nIndex = SourceList.selectedIndex;
 	var nCount = 0;  
	if (nIndex == -1)
	{
		// Process continue only if at least one item selected
		//alert("请先选择一项!");
		return;
	}
	for (i=0;i<SourceList.length;i++)
  {
     if (SourceList.options(i).selected==true)
     {    
         if (inSouceList(SourceList.options(i).value,TargetList)==false)
         {
          	var objSelected = new Option(SourceList[i].text, SourceList[i].value);
           	TargetList.options[TargetList.length] = objSelected;
         }
     }     
	}
  for (var i=0;i<TargetList.options.length;i++)
  {
    TargetList.options(i).selected=true;
  }
	if(navigator.appName=="Netscape")
	{
		history.go(0)
	}
 }
 function inSouceList(SourceListOption,TargetList)
 {
 	  for (i=0;i<TargetList.length;i++)
    {
	     if (TargetList.options[i].value==SourceListOption)
       {
        	 return true;
       }
    }   
    return false;
 }  
function Remove(SelectList)
	{
	var nIndex = SelectList.selectedIndex;
 	var nCount = 0;
	if (nIndex == -1)
	{
		// Process continue only if at least one item selected
		//alert("请先选择一项!");
		return;
	}
  while(nCount<SelectList.length)
  {
       if (SelectList.options(nCount).selected==true)
       {
       	 SelectList.options[nCount] = null;
       }
       else
       {
         nCount++;
       }
  }
	if(navigator.appName=="Netscape")
		{
		history.go(0)
		}	
	}
 function enter()
 {
   var srcEle = window.event.srcElement;
   var tmp;   
   tmp = window.showModalDialog("pub_pub.Dialog_Date?vc_input=" + srcEle.value);
     if ( tmp.indexOf("/") != -1)
     {
        srcEle.value = tmp;
     }
     return;
 }   
 function check_num()
 {
 	 if (window.event.keyCode > 57 || window.event.keyCode < 48)
	 {
	 		window.event.returnValue = false;
	 }
 }
 function check_blank()
 {
 	 if (window.event.keyCode < 48)
	 {
	 		window.event.returnValue = false;
	 }
 }
  
function check_num_dot()
{
 	 if (window.event.keyCode > 57 || window.event.keyCode < 46)
	 {
  		 window.event.returnValue = false;   
	 }
   else
   {
      if(window.event.keyCode==47)
      {
    		 window.event.returnValue = false;
      }
      if(window.event.keyCode==46)
      {
         if (window.event.srcElement.value.indexOf(".")!=-1)
         {
        		 window.event.returnValue = false;
         }
      }   
    }  
 }
  
 function submitonce(theform)
 {
 if (document.all || document.getElementById)
 {
 for (i=0;i<theform.length;i++)
 {
 var tempobj = theform.elements[i]
 if (tempobj.type.toLowerCase() =="button")
 tempobj.disabled = true
 }
 }
 }
 
  function CheckAll() 
 {
   var i = 0;
   for (i=0; i < window.document.forms[0].elements.length; i++) 
   {
     if(window.document.forms[0].elements[i].Chk<3) 
     {
       if(window.document.forms[0].elements[i].value=="")
       {
         alert(window.document.forms[0].elements[i].alt);
         window.document.forms[0].elements[i].focus();
         return;
       }
       else if (window.document.forms[0].elements[i].Chk==2)
       {
         if (NotNumber(window.document.forms[0].elements[i].value))
         {
            alert("提示信息：\n不是有效的数字，请重新输入。");
            window.document.forms[0].elements[i].focus();
            return;
         }
       }
     }
     else if(window.document.forms[0].elements[i].Chk==3)
     {
       if(window.document.forms[0].elements[i].value!="")
       {
         if (NotNumber(window.document.forms[0].elements[i].value))
         {
            alert("提示信息：\n不是有效的数字，请重新输入。");
            window.document.forms[0].elements[i].focus();
            return;
         }
       }
     }
   }
   window.document.forms[0].submit();
   return true;
 }
 function NotNumber(Field)
 {
   var j = 0;
   var k = 0;
   for (var i=0; i<Field.length; i++)
   {
      var ch=Field.substring(i,i+1);
      if((ch>="0")&&(ch<="9")) 
      {
        j=0;
      }
      else if(ch==".") 
      {
        k++;
      }
      else
      {
        j=1;
        break;
      }
   }
   if ((j==0)&&(k<2))
   {
      return false;
   }
   else
   {
      return true;
   }
 }
 function openwindown(page)
 {
    window.open(page,"newuser","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400,left=100,top=150");
 }
</SCRIPT>

<META http-equiv=Content-Language content=zh-cn>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content="MShtml 6.00.2900.5626" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId><LINK 
href="css/style.css" rel=stylesheet>
<SCRIPT language=JavaScript src="css/pub_Calendar.js"></SCRIPT>

<SCRIPT language=javascript>
    function select_check(theForm)
      {
        var count=0;
        for (var k = 0; k < theForm.length; k++)
        if ((theForm[k].type == "checkbox") && (theForm[k].checked))
        count++;
         if (count==0)
         {
            for (k = 0; k < theForm.length; k++)
            {
              if (theForm[k].type == "checkbox")
              theForm[k].checked=true;
            }
         }
         else
         {
            for (k = 0; k < theForm.length; k++)
            {
              if (theForm[k].type == "checkbox")
              theForm[k].checked=false;
            }
         }
      }
      
      function submit_Checkform(theForm,i)
      {
        var count=0;
        for (var k = 0; k < theForm.length; k++)
        if ((theForm[k].type == "checkbox") && (theForm[k].checked))
        count++;
        if (count==0)
        {
          alert("提示信息：\n请选择采购计划。");
          return;
        }
         document.form.p_type.value=i;
         window.document.form.submit();
         return true;
      }      
      function submit_form(theForm,i)
      {
        var count=0;
        for (var k = 0; k < theForm.length; k++)
        if ((theForm[k].type == "radio") && (theForm[k].checked))
        count++;
        if (count==0)
        {
          alert("提示信息：\n请选择采购计划。");
          return;
        }
        if (i==3)
        {
          form.action="../Enquire/Enquire_form.asp";
        }
        if (i==6)
        {
          form.action="../Bidding/bidding_add.asp";
        }
         document.form.p_type.value=i;
         window.document.form.submit();
         return true;
      }
      function submit_form_cx()
      {
        form.action="Project_list.asp";
        window.document.form.submit();
      }
	  cGetRow=0;
	  function clilckEvent(){
	  	cGetRow=window.event.srcElement.parentElement.parentElement.rowIndex;
		var oldTr=subTable.rows[cGetRow];
		if(oldTr.cells[4].innerText=="废弃"){
			document.getElementById("xiugai").disabled=true;
			//document.getElementById("shanchu").disabled=true;
		}
		if(oldTr.cells[4].innerText=="驳回"){
			document.getElementById("xiugai").disabled=false;
			//document.getElementById("shanchu").disabled=false;
		}
	  }
	  
	  function xiangxi(){
	  if(cGetRow==0){
	  	alert("至少选择一条数据查看!");
	  }else{
	  window.location="xjfatz_xjfamx2.html";
	  	//window.open("xjfatz_xjfamx2.html","Canny_list3","toolbar=0,location=0,status=0,menubar=0,//scrollbars=yes,width=600,height=440,left=100,top=60");
	  }	
	  }
	  function upd(){
	  if(cGetRow==0){
	  	alert("至少选择一条数据查看!");
	  }else{
	  window.location="xjfatz_xjfamx3.html";
	  	//window.open("xjfatz_xjfamx2.html","Canny_list3","toolbar=0,location=0,status=0,menubar=0,//scrollbars=yes,width=600,height=440,left=100,top=60");
	  }	
	  }
</SCRIPT>
</HEAD>
<BODY>
<DIV id=overDiv style="Z-INDEX: 1; POSITION: absolute"></DIV>
<CENTER>
<FORM name=form action=Project_list_do.asp method=post><INPUT type=hidden 
value=10 name=p_type> 
<TABLE style="LINE-HEIGHT: 30px" cellSpacing=1 cellPadding=0 width="100%" 
bgColor=#336699 borderColorLight=#006699 border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=1 cellPadding=3 width="100%" border=0 id="subTable">
        <TBODY>
        <TR bgColor=#ffffff>
          <TD align=middle width="100%" bgColor=#ffffff colSpan=19 
            height=22><B>
            <H2><FONT color=#0070c0>未通过审批采购计划一览表</B> <A 
            onclick="window.open('../help/Help.asp?Value=未通过审批采购计划一览表','child','status=NO,scrollbars=yes,toolbar=no,menubar=no,location=no,left=200,top=100,width=700,height=400')" 
            href="javascript:void(null)"><IMG alt=帮助 
            src="css/help_a.gif" border=0></A> </FONT></H2>
            状态：
              <SELECT 
            style="WIDTH: 80px" name=p_stocktype>
                <OPTION value="" 
              selected>全部</OPTION>
                <OPTION value=1>驳回</OPTION>
                <OPTION 
              value=2>废弃</OPTION>
              </SELECT>
              &nbsp;
              <input name="button" type=button onClick=submit_form_cx() value=查询></TD>
        </TR>
        <TR class=t1>
          <TD height="28" align=middle noWrap>选择</TD>
          <TD noWrap align=middle>序号</TD>
          <TD noWrap align=middle>采购计划名称</TD>
          <TD noWrap align=middle>采购类型</TD>
          <TD noWrap align=middle>采购进度</TD>
          <TD noWrap align=middle>采购计划下达时间</TD>
        <TD noWrap 
align=middle>审批人</TD>
        </TR>
		<TR class=t2>
          <TD height="28" align=middle noWrap><input name="cc" type="radio" value="" onClick="clilckEvent()"></TD>
          <TD noWrap align=middle>10086</TD>
          <TD noWrap align=middle>无贼</TD>
          <TD noWrap align=middle>公开求购</TD>
          <TD noWrap align=middle>驳回</TD>
          <TD noWrap align=middle>2009-12-12</TD>
        <TD noWrap 
align=middle>璨璨</TD>
        </TR>
		<TR class=t2>
          <TD height="28" align=middle noWrap><input name="cc" type="radio" value="" onClick="clilckEvent();"></TD>
          <TD noWrap align=middle>10087</TD>
          <TD noWrap align=middle>天下</TD>
          <TD noWrap align=middle>定向求购</TD>
          <TD noWrap align=middle>废弃</TD>
          <TD noWrap align=middle>2009-12-12</TD>
        <TD noWrap 
align=middle>璨璨</TD>
        </TR>
		<TR class=t2>
          <TD height="28" align=middle noWrap><input name="cc" type="radio" value="" onClick="clilckEvent();"></TD>
          <TD noWrap align=middle>10086</TD>
          <TD noWrap align=middle>天下无贼</TD>
          <TD noWrap align=middle>公开求购</TD>
          <TD noWrap align=middle>驳回</TD>
          <TD noWrap align=middle>2009-12-12</TD>
        <TD noWrap 
align=middle>璨璨</TD>
        </TR>
		</TBODY></TABLE></TD></TR></TBODY></TABLE><INPUT 
type=hidden value=10 name=p_listtype> 
<P align=center>
  <input name="button2" type=button onClick="javascript:xiangxi();" value=详细>
  <INPUT onClick="javascript:upd();" type=button value=修改 id="xiugai"> <INPUT onClick="" type=button value=删除 id="shanchu"> 
</P>
</FORM></CENTER></BODY></html>
